var movementObject = {
    onKey: function(e) {
       switch (e.keyCode)
        {
            
        // :::: FOR WASD MOVEMENT ::::
        
        case 65:    //left
            player.moveLeft();
            break;    
            
        case 68:    //right
            player.moveRight();
            break;
            
        case 87:    //up
            player.moveUp();
            break;
            
        case 83:    //down
            player.moveDown();
            break;
            
        // :::: FOR ARROW MOVEMENT ::::
        
        case 37:    //left
            player.moveLeft();
            break;
            
        case 39:    //right
            player.moveRight();
            break;
            
        case 38:    //up
            player.moveUp();
            break;
            
        case 40:    //down
            player.moveDown();
            break;
        } 
    },
    
};